import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加寝室荣誉
export function addBedroomGlory(data) {
  return request({
    url: baseUrl + "/pc/bedroom-glory",
    method: "post",
    data
  });
}

//查询寝室荣誉
export function getBedroomGlory(data) {
  return request({
    url: baseUrl + "/pc/bedroom-glory",
    method: "get",
    params: data
  });
}

//删除寝室荣誉
export function deleteBedroomGlory(data) {
  return request({
    url: baseUrl + "/pc/bedroom-glory",
    method: "delete",
    data
  });
}

//更新寝室荣誉
export function updateBedroomGlory(data) {
  return request({
    url: baseUrl + "/pc/bedroom-glory",
    method: "put",
    data
  });
}

//导入寝室荣誉
export function importBedroomGlory(data) {
  return request({
    url: baseUrl + "/pc/bedroom-glory",
    method: "post",
    data
  });
}
